<template>
  <div>
    <el-dropdown>
      <vxe-button type="text" status="primary">
        更多
        <el-icon class="el-icon--right">
          <!-- <arrow-down /> -->
        </el-icon>
      </vxe-button>

      <template #dropdown>
        <el-dropdown-menu>
          <el-dropdown-item>下拉按钮1</el-dropdown-item>
          <el-dropdown-item>下拉按钮2</el-dropdown-item>
          <el-dropdown-item>下拉按钮3</el-dropdown-item>
        </el-dropdown-menu>
      </template>
    </el-dropdown>
    <!-- <vxe-pulldown ref="pulldownRef" destroy-on-close>
      <template #default>
        <vxe-button type="text" status="primary" @click="clickEvent3">更多</vxe-button>
      </template>
      <template #dropdown>
        <div class="my-dropdown3">
          <div>
            <vxe-button type="text" status="primary" content="操作三"></vxe-button>
          </div>
          <div>
            <vxe-button type="text" status="primary" content="操作四"></vxe-button>
          </div>
          <div>
            <vxe-button type="text" status="primary" content="操作五"></vxe-button>
          </div>
        </div>
      </template>
    </vxe-pulldown> -->
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue';
import type { VxePulldownInstance } from 'vxe-table';


const pulldownRef = ref<VxePulldownInstance>();

const clickEvent3 = () => {
  const $pulldown = pulldownRef.value;
  if ($pulldown) {
    $pulldown.togglePanel();
  }
};
</script>

<style lang="less" scoped>
.my-dropdown3 {
  width: 400px;
  background-color: #fff;
  box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
}
</style>
